console.log("下面是对象合并的demo");
let na = {name: "ali"}
let ag ={age: 20}
let he= {height: 180}
let stu = Object.assign(na, ag, he);
console.log(stu);

console.log("为对象添加属性");
let student = {name: "tencent"}
student.age = 28
console.log(student);

// console.log("为对象删除属性===方式一：这种方式的性能会低一些，同时它是会真正的删除属性");
// delete student.name
// console.log(student);

console.log("为对象删除属性===方式二：这种方式的性能会高一些，但它不会真正的删除属性");
student.name = undefined;
console.log(student);
